package com.umeox.ota.mvvm;

import android.app.Application;

import com.umeox.ota.data.repository.IRepositoryManager;
import com.umeox.ota.data.repository.utils.RepositoryUtils;


public class BaseModel implements IModel {

    protected IRepositoryManager mRepositoryManager;


    public BaseModel(Application application) {
        this.mRepositoryManager = RepositoryUtils.INSTANCE.obtainRepositoryComponent(application).repositoryManager();
    }

    @Override
    public void onDestroy() {
        this.mRepositoryManager = null;
    }
}
